<%@ Page Title="Detail fotografie" Language="C#" MasterPageFile="~/index.Master" AutoEventWireup="true"
    CodeBehind="UkazFoto.aspx.cs" Inherits="Fotobanka.UkazFoto1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Obsah" runat="server">
    <center>
        <h1>
            Detail fotografie</h1>
        <br />
        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
        <br />
        <asp:Image ID="Image1" runat="server" Width="512px" />
        <br />
        <div style="margin-top:5px">
            Aktualni hodnoceni: <asp:Label ID="hodnoceni" runat="server" Text=""></asp:Label>
        </div>
        <div style="margin-top:5px">
            Ohodnotit obrazek: 
            <asp:Button ID="Button1" runat="server" Text="1" OnClick="Button1_Click" BorderWidth="1px" />&nbsp;&nbsp;
            <asp:Button ID="Button2" runat="server" Text="2" OnClick="Button2_Click" BorderWidth="1px" />&nbsp;&nbsp;
            <asp:Button ID="Button3" runat="server" Text="3" OnClick="Button3_Click" BorderWidth="1px" />&nbsp;&nbsp;
            <asp:Button ID="Button4" runat="server" Text="4" OnClick="Button4_Click" BorderWidth="1px" />&nbsp;&nbsp;
            <asp:Button ID="Button5" runat="server" Text="5" OnClick="Button5_Click" BorderWidth="1px" />
        </div>
        <br />
        <div style="width: 90%; text-align: left">
            <asp:Repeater ID="komentare_rep" runat="server">
                <HeaderTemplate>
                    <u>Komentare:</u>
                    <div style="width: 70%;">
                        <table style="margin-top: 5px;">
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <strong>
                                <%#DataBinder.Eval(Container.DataItem, "jmeno")%>
                                <%#DataBinder.Eval(Container.DataItem, "prijmeni")%></strong> (<%#DataBinder.Eval(Container.DataItem, "created_on")%>) <%#DataBinder.Eval(Container.DataItem, "deletelink")%>
                        </td>
                    </tr>
                    <tr>
                        <td style="border-width: 1px;">
                            &nbsp;&nbsp;<i><%#DataBinder.Eval(Container.DataItem, "text")%></i>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table> </div>
                </FooterTemplate>
            </asp:Repeater>
            <br />
            <table border="1">
                <tr>
                    <td>
                        Novy komentar
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox runat="server" ID="komentar_novy" Width="400px" Height="100px" BorderWidth="1px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Button runat="server" ID="komentar_vlozit" Text="Pridat komentar" BorderWidth="1px"
                            OnClick="komentar_vlozit_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </center>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Ovladaci_panel" runat="server">
</asp:Content>
